package com.mexico.inloancash.dialog;


import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebView;
import android.widget.Button;

import androidx.annotation.NonNull;

import com.mexico.inloancash.R;

public class IndiaCommonDialog extends Dialog {
    private Button dialog_bottom;
    private WebView web;;
     public IndiaCommonDialog(@NonNull Context context) {
        super(context,R.style.time_dialog_new);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.india_activity_commons_view_con_layout_dialog);
        Window win = getWindow();
        win.setGravity(Gravity.CENTER);
        WindowManager.LayoutParams lp = win.getAttributes();
        lp.width = WindowManager.LayoutParams.WRAP_CONTENT;
        lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
        win.setAttributes(lp);
        setCanceledOnTouchOutside(false);

        findViewById(R.id.btn_cancel).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });

      /*  dialog_bottom = findViewById(R.id.dialog_bottom);
        dialog_bottom.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                MyPreferencesManager.putIsShow(true);
                dismiss();
            }
        });*/

    }

}
